package org.songyc5.feignclient;

import org.songyc5.feignclient.fein.BookServiceFeignClient;
import org.songyc5.feignclient.model.Book;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * Created by songyc5 on 18/02/2018
 */
@RestController
public class BookController implements BookServiceFeignClient {

    @Override
    public Book getBook() {
        Book book = new Book(1L, "hellobook", "bill", "123", new Date().toString());
        return book ;
    }

}
